]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
[lookingGlass] Fix scrolling in errorLog
authorColin Walters <walters@verbum.org>
Thu, 3 Jun 2010 16:47:15 +0000 (12:47 -0400)
committerColin Walters <walters@verbum.org>
Thu, 3 Jun 2010 16:51:16 +0000 (12:51 -0400)
When setting line_wrap, we need to unset the ellipsization, otherwise
ClutterText won't do what we want.

js/ui/lookingGlass.js

index 2a175fe9eeb71d3e29c40d6f69dcae53cc38e85d..84efc7135630cd3e1bbcd23be4af4d206376da89 100644 (file)
@@ -431,6 +431,11 @@ ErrorLog.prototype = {
         this.actor = new St.BoxLayout();
         this.text = new St.Label();
         this.actor.add(this.text);
+        // We need to override StLabel's default ellipsization when
+        // using line_wrap; otherwise ClutterText's layout is going
+        // to constrain both the width and height, which prevents
+        // scrolling.
+        this.text.clutter_text.ellipsize = Pango.EllipsizeMode.NONE;
         this.text.clutter_text.line_wrap = true;
         this.actor.connect('notify::mapped', Lang.bind(this, this._renderText));
     },